<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable = 0">
	
<title>个人资产</title>

<link href="../../public/css/base.css" rel="stylesheet">
<link href="../../public/css/user.css" rel="stylesheet">
<script src="../../public/js/jquery.min.2.1.4.js"></script>
<script src="../../public/js/md5.js"></script>
<script src="../../public/js/sort_ascii.js"></script>
<script src="../../public/js/f_data.js"></script>
</head>

<body>
<div class="user-top">
	<div class="header user-header">
		<div class="header-msg">
			<a href="../User/MyMessage.html"></a>
		</div>
		
		<div class="header-setting">
			<a href="../User/Setting.html"></a>
		</div>
	</div>
	
	<div class="user-info">
		<a href="../User/Setting.html">
			<div class="user-photo">
				<img src="../../public/images/member.png">
			</div>

			<h3 class="uid">UID:null</h3>

			<div class="user-level">
				<span class="level">等级：null级</span>
			</div>
		</a>
	</div>
	
	<div class="user-wallet">
	    <ul>
			<li>
				<a href="../Wallet/AccountRecord.html">
					<h3 class="usdt">null</h3>
					<span>USDT</span>					
				</a>
			</li>

			<li>
				<a href="../Wallet/PointRecord.html">
					<h3 class="syb">null</h3>	
					<span>SYB</span>				
				</a>
			</li>
		</ul>
	</div>
	<div class="user-wallet2">
	    <ul>
			<li>
				<a href="../Wallet/AccountRecord.html">
					<h3 class="jhm">null</h3>
					<span>激活码</span>					
				</a>
			</li>

			<li>
				<a href="../Wallet/PointRecord.html">
					<h3 class="tz">null</h3>	
					<span>通证</span>				
				</a>
			</li>
		</ul>
	</div>
</div>

<div class="user-container">
	<div class="index-panel">
		<div class="main-menu">
			<ul>
				<li>
					<a href="../Transfer/TransferIn.html">
						<i class="icon-transferin"></i>
						<span>转入</span>
					</a>
				</li>
				<li>
					<a href="../Transfer/TransferOut.html">
						<i class="icon-transferout"></i>
						<span>转出</span>
					</a>
				</li>
				<li>
					<a href="../Trade/Buy.html">
						<i class="icon-buy"></i>
						<span>买入</span>
					</a>
				</li>
				<li>
					<a href="../Trade/Sell.html">
						<i class="icon-sell"></i>
						<span>卖出</span>
					</a>
				</li>
			</ul>
		</div>
	</div>
	<div class="clr"></div>
	
	<div class="index-panel">
		<div class="index-announce">
			<div class="announce-box">
				<ul>
					<li>
						<a href=""><span>08-24</span>标题标题</a>
					</li>
					
					<li>
						<a href=""><span>08-22</span>公告标题公告的标题公告的标题哎哎哎</a>
					</li>

					<li>
						<a href=""><span>08-20</span>USDT即将上市，敬请期待</a>
					</li>

					<li>
						<a href=""><span>08-08</span>网站正式上线运营</a>
					</li>
				</ul>
			</div>
			
			<a href="../Article/Announce.html" class="announce-more">更多</a>
		</div>
		
		<div class="index-menu">
			<ul>
				<li class="no-open">
					<a href="javascript:;" class="index-menu-1">
						<i></i>
						<span>ZFC游戏</span>
					</a>
				</li>
				
				<li class="no-open">
					<a href="javascript:;" class="index-menu-2">
						<i></i>
						<span>ZFC社区</span>
					</a>
				</li>
				
				<li class="no-open">
					<a href="javascript:;" class="index-menu-3">
						<i></i>
						<span>ZFC贷</span>
					</a>
				</li>
			</ul>
		</div>
	</div>
</div>
<div class="nav">
	<ul>
		<li id='pay'>
			<a href="../wallet/digitalassets.html" class="nav-assets">
				<i></i>
				<span>交易</span>
			</a>
		</li>
		<li id='shop'>
			<a href="../shop/shopindex.html" class="scan-btn">
				<i></i>
				<!--<span>扫码转账</span>-->
			</a>
		</li>
		<li id='zichan'>
			<a href="../home/index.html" class="nav-shop">
				<i></i>
				<span>资产</span>
			</a>
		</li>
	</ul>
</div>


<!--暂未开放弹窗-->
<div class="popup">
    <div class="popup-box coming-soon">
        <div class="popup-box-content">
            <div class="coming-soon-content">
				<img src="../../public/images/coming_soon.png">
				<p>此功能暂未开放，敬请期待</p>
			</div>
        </div>
        
        <div class="popup-submit">
			<button type="submit" class="confirm-btn">确认</button>
        </div>
    </div>
</div>


<script>
	var g_u_ids = checktoken('uid','token');
	var g_u_id = getCookie('uid');
	var g_token = getCookie('token');
	var g_time = Date.parse(new Date())/1000;
	let g_datas = {g_u_id,g_token,g_time};
    let g_data = sort_ascii(g_datas);
	var g_code = sort_code(g_data);
	$.ajax({
	    type: 'post',
	    url: url+"/index.php/api/User/user_index",
	    data:{u_id:g_u_id,token:g_token,time:g_time,code:g_code},
	    success: function (msg){
	    		if(msg.code == 1){
	    			$(".uid").html("UID:"+msg.data.u_id);
	    			$(".level").html("等级:"+msg.data.level+"级");
	    			$(".usdt").html(msg.data.usdt);
	    			$(".syb").html(msg.data.taurus);
	    			$(".jhm").html(msg.data.jihuoma);
	    			$(".tz").html(msg.data.tz);
	    			// setCookie('token',msg.data.token,1);
	    			// alert(msg.data);
				}
				if(msg.code == 0){
					alert(msg.data);
	    			location.href="../login/login.html"
				}
	    },
        error : function() {
	          	//提交失败的提示词或者其他反馈代码
	        	alert('失败！');
        }
	 });



	$(function() {
		 //公告轮播
		var adtimer;
		var wrap = $(".announce-box ul");
		var len = $(".announce-box ul li").length;
		if(len>1){
			$(".announce-box").hover(function(){
					clearInterval(adtimer);
				},
				function(){
					adtimer = setInterval(function(){
						var first = wrap.find("li:first");
						var HEIGHT = first.height();
						first.animate({
							marginTop:-HEIGHT+'px'
						},500,function(){
							first.css('marginTop',0).appendTo(wrap);
						})
					},2500)
				}).trigger('mouseleave');
		}
		
		//var num = 0;
//		var width = 0;
//		var length = $('.announce-box ul li').length;
//
//		for(var i=0; i<length; i++){
//			width += $('.announce-box ul li').eq(i).width();
//		}
//		
//		function goLeft() {
//
//			if (num == -parseInt(width)) {
//				num = 0;
//			}
//			num -= 1;
//			$(".announce-box ul").css({
//				marginLeft: num
//			})
//		}
//		
//		//设置滚动速度
//		var timer = setInterval(goLeft, 30);
//		
//		//设置鼠标经过时滚动停止
//		$(".announce-box ul").hover(function() {
//			clearInterval(timer);
//		},
//		function() {
//			timer = setInterval(goLeft, 30);
//		});
		
		//顶部滚动效果
		//$(window).scroll(function(){
//			
//			if ($(window).scrollTop() >= 20){
//				$("#fixedBg").addClass('user-header-fixed');
//			}
//			else{
//				$("#fixedBg").removeClass('user-header-fixed');
//			}
//		});
	});

	
	//暂未开放
	$(function(){
		$('.no-open').click(function(){
			$('.popup').fadeIn();	
			
			var h = ($(window).height() - $('.popup-box').height())/2;
			$('.popup-box').css('margin-top',h);
		});	
		
		$('.confirm-btn').click(function(){
			$('.popup').fadeOut();				  
		});
	});
</script>
</body>
</html>
